﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Models
{
    /// <summary>
    /// 健康跟踪记录表
    ///</summary>
    [SugarTable("health_tracking")]
    public class Health_tracking
    {
        
     
        /// <summary>
        /// 备  注:主键ID
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="id" ,IsPrimaryKey = true,IsIdentity = true) ]
        public int Id  { get; set;  } 
     
        /// <summary>
        /// 备  注:病人ID
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="patient_id" ) ]
        public string Patient_id  { get; set;  } = null!;
     
        /// <summary>
        /// 备  注:记录类型
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="type" ) ]
        public string Type  { get; set;  } = null!;
     
        /// <summary>
        /// 备  注:患者全名
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="full_name" ) ]
        public string? Full_name  { get; set;  } 
     
        /// <summary>
        /// 备  注:性别
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="sex" ) ]
        public string? Sex  { get; set;  } 
     
        /// <summary>
        /// 备  注:年龄
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="age" ) ]
        public int? Age  { get; set;  } 
     
        /// <summary>
        /// 备  注:身份证号
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="id_card" ) ]
        public string? Id_card  { get; set;  } 
     
        /// <summary>
        /// 备  注:内容
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="content" ) ]
        public string? Content  { get; set;  } 
     
        /// <summary>
        /// 备  注:部门名称
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="dept_name" ) ]
        public string? Dept_name  { get; set;  } 
     
        /// <summary>
        /// 备  注:诊断信息
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="diagnosis" ) ]
        public string? Diagnosis  { get; set;  } 
     
        /// <summary>
        /// 备  注:病人人群分类(1.一般人群 2.高危人群 3.慢病人群)
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="crowd_category" ) ]
        public string? Crowd_category  { get; set;  } 
     
        /// <summary>
        /// 备  注:医生姓名
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="doctor_name" ) ]
        public string? Doctor_name  { get; set;  } 
     
        /// <summary>
        /// 备  注:记录日期时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="datetime" ) ]
        public DateTime? Datetime  { get; set;  } 
     
        /// <summary>
        /// 备  注:随访方式(1.门诊，2.家庭,3.电话)
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="follow_up_methods" ) ]
        public string? Follow_up_methods  { get; set;  } 
     
        /// <summary>
        /// 备  注:短信模板的类型
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="sms_type" ) ]
        public string? Sms_type  { get; set;  } 
     
        /// <summary>
        /// 备  注:短信名称
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="name" ) ]
        public string? Name  { get; set;  } 
     
        /// <summary>
        /// 备  注:短信的状态
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="status" ) ]
        public string? Status  { get; set;  } 
     
        /// <summary>
        /// 备  注:慢性病分组
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="chronic_grouping" ) ]
        public string? Chronic_grouping  { get; set;  } 
     
        /// <summary>
        /// 备  注:筛查单号
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="ids" ) ]
        public string? Ids  { get; set;  } 
     
        /// <summary>
        /// 备  注:随访ID
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="fid" ) ]
        public int? Fid  { get; set;  } 
     
        /// <summary>
        /// 备  注:转诊机构
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="referring_facility" ) ]
        public string? Referring_facility  { get; set;  } 
     
        /// <summary>
        /// 备  注:转诊机制
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="steering_mechanism" ) ]
        public string? Steering_mechanism  { get; set;  } 
     
        /// <summary>
        /// 备  注:创建时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="create_time" ) ]
        public DateTime? Create_time  { get; set;  } 
     
        /// <summary>
        /// 备  注:更新时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="update_time" ) ]
        public DateTime? Update_time  { get; set;  } 
     
        /// <summary>
        /// 备  注:上级type
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="parent_type" ) ]
        public string? Parent_type  { get; set;  } 
     
        /// <summary>
        /// 备  注:医生code
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="doctor_id" ) ]
        public int? Doctor_id  { get; set;  } 
     
        /// <summary>
        /// 备  注:纳管状态
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="ng_status" ) ]
        public int? Ng_status  { get; set;  } 
     
        /// <summary>
        /// 备  注:纳管原因
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="ng_content" ) ]
        public string? Ng_content  { get; set;  } 
    

    }
    
}